package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum DmGyPtzhyhztEnum {
    PTZHYHZT_ZC("00", "正常"),

    PTZHYHZT_SD("01", "锁定");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyPtzhyhztEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }

}
